﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;

[CustomEditor(typeof(Main))]
public class Main_Inspctr : Editor 
{

    void checkList(List<Ingredient> ings) {
		/*
        for(int i = ings.Count;i-- > 0;) {
            if( ings[i] == null ) {
                var go = new GameObject();
                //ings[i] = go.AddComponent<Ingredient>();
              //  go.hideFlags =  HideFlags.g.HideInHierarchy;
                go.transform.parent = Target.transform;
                EditorUtility.SetDirty(target);
            }
        }*/
    }

    Main Target;
    public override void OnInspectorGUI()
    {
        Main mn = Target =  (Main)target;
        DrawDefaultInspector();
        /*if( mn == null ) return;
        checkList( mn.Glasses );
        checkList( mn.Liquids );
        checkList( mn.Extras );*/
    }


	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
